import App from "./App.vue";
import { createApp } from "vue";
import pinia from "@/store";
import router from "./router";
import ElementPlus from "element-plus";
// 暗黑模式
import "element-plus/theme-chalk/dark/css-vars.css";
//@ts-ignore
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import "element-plus/dist/index.css";
// svg插件需要配置代码
import "virtual:svg-icons-register";
// 引入全局样式
import "@/styles/index.scss";
import GlobalComponents from "@/components";

const app = createApp(App);
app.use(GlobalComponents);
app.use(pinia);
app.use(router);
app.use(ElementPlus, { locale: zhCn }); // 使用elementPlus插件，并国际化配置

app.mount("#app");
